package com.example.service.util.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author juzipi
 * @Date 2021/7/26 9:34
 * @Info
 */
@Component
public class OrderPropertiesVariable {


    public static String appid;//微信appid

    public static String partner;//商户号

    public static String partnerKey;//商户key

    public static String cert;//退款证书


    @Value(value = "${weixin.appid}")
    public static void setAppid(String appid) {
        OrderPropertiesVariable.appid = appid;
    }

    @Value(value = "${weixin.partner}")
    public static void setPartner(String partner) {
        OrderPropertiesVariable.partner = partner;
    }

    @Value(value = "${weixin.partnerKey}")
    public static void setPartnerKey(String partnerKey) {
        OrderPropertiesVariable.partnerKey = partnerKey;
    }

    @Value(value = "${weixin.cert}")
    public static void setCert(String cert) {
        OrderPropertiesVariable.cert = cert;
    }

}
